package com.tour.tour.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tour.tour.common.Response;
import com.tour.tour.dto.TourRouteDTO;
import com.tour.tour.entity.TourRouteEntity;
import com.tour.tour.exception.AuthorizationForbiddenException;
import com.tour.tour.exception.UserStatusException;
import com.tour.tour.vo.TourRouteVO;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @author 76004
 * @apiNote
 * @date 2023/4/27 19:22
 */
public interface TourRouteService extends IService<TourRouteEntity> {
    public Response<Void>update(TourRouteEntity tourRouteEntity, HttpServletRequest httpServletRequest) throws UserStatusException, AuthorizationForbiddenException;
    public Response<List<TourRouteVO>> getPage(Integer pageNum, Integer pageSize) throws UserStatusException;

    public Response<Void> delete(Long tid,HttpServletRequest httpServletRequest) throws UserStatusException, AuthorizationForbiddenException;

    public Response<Void> addTourRoute(TourRouteDTO tourRouteDTO,HttpServletRequest httpServletRequest)throws UserStatusException, AuthorizationForbiddenException;
}
